package wishes;

import model.Model;
import enums.WishType;
import interfaces.AbstractWish;

public class WishToCleanApartment extends AbstractWish {

	public WishToCleanApartment(long startTime) {
		super(startTime);
	}

	@Override
	public boolean canBeFulfilled() {
		return true;
	}

	@Override
	public boolean fulfill() {
		// Putzen
		//Model.getInstance().cleanApartment();
		return Model.getInstance().getWishes().remove(this);
	}

	@Override
	public long getDeadLine() {
		return getStartTime() + Model.ZEIT_MINUTE;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("bis ").append(Model.millisToString(getDeadLine()));
		builder.append(" >> Will sauber machen");
		return builder.toString();
	}

	@Override
	public WishType getType() {
		return WishType.WishToCleanApartment;
	}
}
